package com.lianbang.staff.adapter

import cn.ubest.mvvmcore.utils.ResourcesUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.lianbang.staff.R
import com.lianbang.staff.bean.CartBean

/**
 * Created by maoqi on 2020/12/28.
 */
class OrderDetailListAdapter :
    BaseQuickAdapter<CartBean, BaseViewHolder>(R.layout.item_order_detail_list) {
    override fun convert(helper: BaseViewHolder, item: CartBean) {
        helper.setText(R.id.tv_category, item.cate_name)
            .setText(R.id.tv_name, item.store_name)
            .setText(R.id.tv_number, "${item.cart_num}")
            .setText(R.id.tv_specification, item.unit)
            .setText(R.id.tv_total_money, item.total_price)
    }

}